<%-- 
    Document   : frmVistaPreviaDocumento
    Created on : 15/09/2010, 03:27:41 PM
    Author     : Home
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Sistema de Información SISDAF-PNP</title>
        <link rel="stylesheet" type="text/css" href="js/ext/resources/css/ext-all.css"/>
        <link rel="stylesheet" type="text/css" href="js/ext/resources/css/progress-bar.css"/>
        <script type="text/javascript" src="js/ext/adapter/ext/ext-base.js"></script>
        <script type="text/javascript" src="js/ext/ext-all.js"></script>
        <script type="text/javascript" src="js/teclas.js"></script>
        <script type="text/javascript" src="js/tiny_mce/tiny_mce.js"></script>
        <script type="text/javascript" src="js/ext/Ext.ux.TinyMCE.min.js"></script>
        <script type="text/javascript" src="js/ext/funcionesgrid.js"></script>
        <script type="text/javascript" src="js/funciones.js"></script>
        <script type="text/javascript" src="js/prototype.js"></script>
        <script type="text/javascript">
            Ext.onReady(function(){
            var vwidth  = screen.width-50;
            var vheight = screen.height-100;
                var win;
                if(!win){
                    win = new Ext.Window({
                        applyTo:'Previa-win',
                        layout:'fit',
                        width:vwidth,
                        height:vheight,
                        closeAction:'destroy',
                        closable: false,
                        plain: true,
                        items: new Ext.TabPanel({
                            applyTo: 'winVistaPrevia',
                            autoTabs:true,
                            activeTab:0,
                            deferredRender:false,
                            border:false
                        }),

                        buttons: [{
                                text: 'Cerrar',
                                iconCls:'icon-cancel',
                                handler: function(){
                                    win.hide();
                                    window.close();
                                }
                            }]
                    });
                }
                win.show(this);
            });
        </script>

    </head>
    <body>
           <div id="Previa-win" class="x-hidden">
            <div class="x-window-header">Consulta de Documento</div>
            <div id="winVistaPrevia">
                <!-- Auto create tab 1 -->
                <div class="x-tab" title="Vista Previa">
                    <p><img src="imagenes/FondoDirpen.png "/></p>
                </div>
                <div class="x-tab" title="Indices">
                    <p></p>
                </div>
            </div>
        </div>
    </body>
</html>
